home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 4635 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  5.7 KB

  1. Path: flip.eecs.umich.edu!not-for-mail
  2. From: chrismc@flip.eecs.umich.edu (Chris McCormack)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: ACE with 1670, help needed
  5. Date: 27 Mar 1996 13:37:17 GMT
  6. Organization: University of Michigan EECS
  7. Message-ID: <4jbgad$ls7@news.eecs.umich.edu>
  8. References: <4j95tp$3hp@news.xmission.com> <Dow1G7.ovM@undergrad.math.uwaterloo.ca>
  9. NNTP-Posting-Host: flip.eecs.umich.edu
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. riverYard <jshell@xmission.com> wrote:
  13. :>i found a 1670 modem for a few bucks and stuck it in my commie so i could 
  14. :>finally get ACE and other programs i've been meaning to get, and i'm 
  15. :>wanting to use ACE now to do my file transfers with using FX, but it's 
  16. :>not accepting the modem.  The CONFIG file is setup for swiftlink type 
  17. :>modems, and when i tried to reconfigure it to the userport, reboot ace 
  18. :>and use term, it just froze and in the status bar in the baud rate it 
  19. :>said "resrvd" or something like that.  How do i configure ACE to use a 
  20. :>userport modem (Getting Swiftlink and a fast modem are on my shopping 
  21. :>list, i got the 1670 to get me by until then).
  22.  
  23. Craig Bruce (csbruce@ccnga.uwaterloo.ca) wrote:
  24. : Unfortunately, ACE does not work with a userport modem at this time.  I have
  25. : thought about the design of such a device but I have not gotten around to
  26. : actually writing one.  The current userport device is meant for parallel-
  27. : interfaced devices.
  28.  
  29.    What would be really neat is modifying ACE not only to use the user port,
  30. but also to incorporate the high-speed suggestions posted a while back.
  31. In case you missed it, here is some of the info I saved.  (He did it for a
  32. C64, but if the 64 can hit 9600bps, shouldn't a 128 be able to get 19200
  33. bps without a Swiftlink?)
  34.                         Chris McCormack
  35.                         chrismc@eecs.umich.edu
  36.  
  37. =========================================================================
  38.  
  39.  
  40. From zcmm1121@rpool8.rus.uni-stuttgart.de Mon May 29 06:48:34 EDT 1995
  41. Article: 39429 of comp.sys.cbm
  42. From: zcmm1121@rpool8.rus.uni-stuttgart.de (Daniel Dallmann)
  43. Newsgroups: comp.sys.cbm
  44. Subject: 9600baud without swiftlink!
  45. Date: 29 May 1995 08:45:41 GMT
  46. Organization: Comp.Center (RUS), U of Stuttgart, FRG
  47.  
  48. 9600 baud (and perhaps over..) without a swiftlink
  49. (with normal interfaces only a few modifications are needed)
  50.  
  51. Its possible to use the serial ports of both CIAs to realize a
  52. RS232-connection.  My sample code enables 9600 baud.  Receive 960
  53. bytes/s (causing only 16% CPU-load) and sending 600 bytes/s
  54. at the same time (asynchon) with a active VIC (no blank screen or something
  55. like that).
  56.  
  57. Sending is no problem at all, you can even send with up to 250kbaud!
  58. There is one thing to mention: the CIAs serial does the MSB first, but
  59. standard RS232 does LSB first. So you have to swap every byte received
  60. or sent. (exchange bit7 <-> bit0...and so on) But thats no problem (you
  61. can use a 256-byte table, so swapping takes only 4 cycles).
  62.  
  63. But how to generate the start- and stopbits ?
  64.  
  65.    0XXX XXXX  X111 1111
  66.    ^--data-----^
  67.    |           |
  68.    Startbit    Stopbit + padding
  69.  
  70.   Note:
  71.    Everytime you have to transmitt one byte, you have to put
  72.    two bytes into the shift-register !
  73.  
  74. How to program the CIA ?
  75.  
  76.   Use CIA-As shiftregister to send ! (We need NMI for receiving because
  77. its fast and can't be disabled)
  78.   
  79.   Timer A: Send-timer  51 -> $dc04  (9600 Baud on a PAL C64)
  80.                         0 -> $dc05
  81.                       $41 -> $dc0e  (start timer + togle SP1 to output)
  82.  
  83.                      data -> $dc07...
  84.  
  85. How to receive ?
  86.  
  87.   You can use time B of CIA-B to generate impulses on PB7.
  88.   Connect PB7 to CNT2 and CIA-Bs shiftregister will read one bit with every
  89.   PB7-signal.
  90.  
  91.         100 -> $dd06
  92.           0 -> $dd07 (again 9600 baud)
  93.     
  94.         $03 -> $dd0f
  95.  
  96. How to timers are used:
  97.  
  98.  CIA A: Timer A - Send baudrate (for SP1)
  99.         Timer B - generation of the normal keyscan-irq
  100.         serial port is used to send.
  101.  
  102.  CIA B: Timer A - unused
  103.         Timer B - receive baudrate (for SP2 but used to generate a
  104.                   signal on PB6)
  105.                   Timer is triggered by the falling edge of RXD (by software).
  106.         serial port is used to receive
  107.  
  108. NEEDED HARDWARE:
  109. The easy way:    (RS232 using the CIAs serial port)
  110.  
  111. The minimal hardware consists of only one MAX232 (i used a TCL232CPE).
  112. Plus 2 TTL-Inverter, if you want to use RTS,CTS also.
  113.  
  114.        UserPort        MAX232         RS232
  115.  
  116.                           /!
  117. (B) -FLAG2--*-----------o< !---------  RXD
  118.             !          9  \! 8
  119. (7)    SP2--+
  120.  
  121. (6)   CNT2--+
  122.             !
  123. (L)    PB7--+
  124.                         !\
  125. (5)    SP1--------------! >o---------  TXD
  126.                      11 !/  14
  127.  
  128.  
  129. for RTS,CTS :...
  130.  
  131.                +--+     !\
  132. (D)    PB1--->-!-1!->---! >o---------  RTS
  133.                +--+   10!/ 7             
  134.  
  135.                +--+       /!
  136. (K)    PB6---<-!-1!-<---o< !---------  CTS
  137.                +--+    11 \!13
  138.  
  139.  
  140.  
  141. Note:
  142.  If you already havea 'normal' RS232-Interface you just have to
  143.  connect the userport-pins SP2,-FLAG2 and CNT2,PB7.
  144.  (maybe you'll have to disconnect PB7 of your interface !
  145.  These connections don't affect normal RS232-routine, because
  146.  SP1,SP2 are normaly unused and inputs. 
  147.  
  148. I wrote a 'experimental terminal' which uses fast-rs232 (9600 baud)
  149.  its features are:
  150.     send 600 bytes/s
  151.     receive 960 bytes/s  (at the same time)
  152.  
  153.     big buffer for up/downloads (>40kbyte)
  154.         (only ascii- up and down loads are possible)
  155.     load/save/erase datafiles (in memory)
  156.     automated login (with redailing...if busy)
  157.     the user-interface is written in basic so you can
  158.      make modifications very easy !
  159.  
  160.     you can get it via anonymous ftp from
  161.       131.188.190.131  /pub/c64/comm 
  162.  
  163.  
  164. ...Daniel Dallmann   <zcmm1121@rpool1.rus.uni-stuttgart.de>
  165.                      <Daniel.Dallmann@studbox.uni-stuttgart.de>
  166.  
  167.